<template>
  <view class="my">
    <my-userinfo v-if="token"></my-userinfo>
    <my-login v-else></my-login>

  </view>
</template>

<script>
  import setTabbar from '@/mixins/index.js'
  import {
    mapState
  } from 'vuex'
  export default {
    mixins: [setTabbar],
    computed: {
      ...mapState('user', ['token'])
    },
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">

</style>